/**
 * Created by ZE-C on 2017/8/12.
 */
import { NgModule }              from '@angular/core';
import { RouterModule, Routes }  from '@angular/router';

import {Page1Component} from "./module/components/page1/page1";
import {Page2Component} from "./module/components/page1/page2";
import {RxjsPageComponent} from "./module/rxjs_study/rxjs.component";

const appRoutes: Routes = [
  {path: '', redirectTo: '/rxjs', pathMatch: 'full'},
  {path: 'page1', component: Page1Component},
  {path: 'page2', component: Page2Component},
  {path: 'rxjs', component: RxjsPageComponent},
  {path: 'primeng', component: RxjsPageComponent},

];
// { enableTracing: true } // <-- debugging purposes only
@NgModule({
  imports: [
    RouterModule.forRoot(
      appRoutes
    )
  ],
  exports: [
    RouterModule
  ]
})
export class AppRoutingModule {}
